#ifndef ISSSOURCE_H
#define ISSSOURCE_H

#include <string>
#include <QString>
const QString BUTTON_STYLE = "QPushButton {"
                            "background-color: #3498db;"
                            "color: white;"
                            "border: none;"
                            "padding: 8px 16px;"
                            "border-radius: 4px;"
                            "font-weight: normal;"
                            "}"
                            "QPushButton:hover {"
                            "background-color: #2980b9;"
                            "}"
                            "QPushButton:pressed {"
                            "background-color: #1d6fa5;"
                            "}";

const QString LINE_EDIT_STYLE = "QLineEdit {"
                              "border: 1px solid #bdc3c7;"
                              "border-radius: 3px;"
                              "padding: 5px;"
                              "background-color: white;"
                              "color: black;"               // 添加黑色文字
                              "font-weight: normal;"          // 改为正常字体
                              "}"
                              "QLineEdit:focus {"
                              "border: 1px solid #3498db;"
                              "color: black;"               // 聚焦时也保持黑色
                              "font-weight: normal;"          // 聚焦时也保持正常字体
                              "}";

const QString MSG_STYLE = R"(
        QMessageBox {
            background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                          stop:0 #ffffff, stop:1 #f0f5ff);
            border-radius: 12px;
            border: 1px solid #d0e0ff;
            padding: 20px;
            min-width: 380px;
            min-height: 220px;
        }
        QLabel#qt_msgbox_label {
            color: #2c3e50;
            font-family: 'Microsoft YaHei';
            font-size: 16px;
            font-weight: 500;
            margin-top: 10px;
        }
        QPushButton {
            background-color: #4a90e2;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 20px;
            font-size: 14px;
            min-width: 100px;
        }
        QPushButton:hover {
            background-color: #3a7bc8;
        }
    )";

const QString MSG_STYLE_2 = R"(
        QMessageBox {
            background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
                          stop:0 #8E2DE2, stop:1 #4A00E0);
            border-radius: 15px;
            padding: 20px;
            color: white;
            font-family: 'Microsoft YaHei';
            min-width: 400px;
            border: 2px solid #FFFFFF;
        }
        QLabel {
            color: white;
            font-size: 16px;
        }
        QPushButton {
            background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                          stop:0 #00B4DB, stop:1 #0083B0);
            border-radius: 10px;
            color: white;
            padding: 8px 20px;
            font-size: 14px;
            border: none;
            min-width: 80px;
        }
        QPushButton:hover {
            background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                          stop:0 #00B4DB, stop:1 #0062B0);
        }
    )";

const std::string META_STRING = R"TCT_COMPANY(
#define MyAppName "ITE数据检查"
#define MyAppVersion "0.0.1"
#define MyAppPublisher "张纪生"
#define MyAppURL "http://www.bj-tct.com/"
#define MyAppExeName "ite_viewer.exe"

[Setup]
AppId={{27682F4A-88E9-4642-BD7D-38B6F4DC3B10}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
UninstallDisplayIcon={app}\{#MyAppExeName}
DisableProgramGroupPage=yes

OutputDir=C:\Users\TCT-GYC\Desktop\fast
OutputBaseFilename=setup
SetupIconFile=C:\Users\TCT-GYC\Desktop\tct.ico
SolidCompression=yes
WizardStyle=modern
PrivilegesRequired=admin

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Users\TCT-GYC\Downloads\Tools_v0.0.1\Debug\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\TCT-GYC\Downloads\Tools_v0.0.1\Debug\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
)TCT_COMPANY";

#endif // ISSSOURCE_H
